<template>
  <div class="edit-container">
    <!-- 1.顶部栏 -->
    <van-nav-bar title="编辑资料" left-arrow @click-left="$router.back()" />
    <!-- 2.头像 -->
    <div class="avatar">
      <van-image
        width="120"
        height="120"
        round
        fit="cover"
        src="https://img01.yzcdn.cn/vant/cat.jpeg"
      />
    </div>
    <!-- 3.编辑操作 -->
    <van-cell-group>
      <van-cell title="名称" value="昵称" is-link />
      <van-cell title="性别" value="男" is-link />
      <van-cell title="生日" value="2020-1-1" is-link />
    </van-cell-group>
  </div>
</template>

<script>
export default {}
</script>

<style lang="less">
.edit-container {
  .van-nav-bar__content {
    background-color: #009afb;
    .van-nav-bar__title {
      color: #fff;
    }
    .van-icon-arrow-left {
      color: #fff;
    }
    .van-nav-bar__text {
      color: #fff;
    }
  }

  /* 头像 */
  .avatar {
    display: flex;
    height: 150px;
    justify-content: center;
    align-items: center;
  }
}
</style>
